<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<form id="pagerForm" method="get" model="viewRequest" action="#rel#">
	<input type="hidden" name="viewRequest.page" value="${page.number}" />
	<input type="hidden" name="viewRequest.size" value="${page.size}" />
	<c:forEach items="${viewRequest.params}" var="params">
		<input type="hidden" id="${params.key}" name="viewRequest.params['${params.key}']" value="${params.value}" />
	</c:forEach>
	<c:forEach items="${viewRequest.sort}" var="sort">
		<input type="hidden" name="viewRequest.sort.${sort.key}" value="${sort.value}" />
	</c:forEach>
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="${rootUrl}/info/index-class" method="get">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>标题：</label>
				<input type="text" name="viewRequest.params['i_dot_title_like']" value="${viewRequest.params.i_dot_title_like}"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${rootUrl}/info/index-class/new" target="dialog" width="1320" height="720" rel="index_class_detail" title="添加"><span>添加</span></a></li>
		<%-- 	<li><a class="edit"  href="${rootUrl}/goods/goods/{data_id}/edit" target="dialog" width="1320" height="720" rel="article_edit" title="修改"><span>修改</span></a></li> --%>
			<!-- <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li> -->
		</ul>
	</div>
	<table class="table" targetType="dialog"  width="100%" layoutH="75">
		<thead>
			<tr>
				<th width="30" align="center" >序号</th>
				<th width="120">标题</th>
				<th width=200>展示类型</th>
				<th width="50">排序</th>
				<th width="120">所属平台</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.content}" var="indexClass" varStatus="status">
			<tr target="data_id" rel="${indexClass.id}">
				<td>${status.count}</td>
				<td>${indexClass.title }</td>
				<td>${showType[indexClass.showType] }</td>
				<td>${indexClass.sort }</td>
				<td><c:if test="${indexClass.platform == 1 }">h5</c:if><c:if test="${indexClass.platform == 2 }">pc</c:if><c:if test="${indexClass.platform == 3 }">app</c:if></td>
				<td>
				    <a title="编辑" target="dialog" width="1320" height="720" rel="goods_detail" title="修改"  href="${rootUrl}/info/index-class/${indexClass.id}/edit" class="btnEdit">编辑</a>
					<a title="确定要删除这个记录吗?" target="dialogAjaxTodo" callback="navTabAjaxDone" href="${rootUrl}/info/index-class/${indexClass.id}?_method=delete" class="btnDel">删除</a>
					<a title="内容维护" target="dialog" width="1320" height="720" rel="index_data" title="内容维护"  href="${rootUrl}/info/index-data?indexClassId=${indexClass.id}">内容维护</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="${page.size}">${page.size}</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${page.totalElements}条 </span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${page.totalElements}" numPerPage="${page.size}" pageNumShown="10" currentPage="${page.number}"></div>
	</div>
</div>